package com.buerke.mykotlinapptest

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.buerke.mykotlinapptest.databinding.ActivityMainBinding

class MainActivity : AppCompatActivity() {

    private lateinit var binding: ActivityMainBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        binding = ActivityMainBinding.inflate(layoutInflater)
        setContentView(binding.root)

        initView()
    }

    private fun initView() {
        binding.toolbar.ivBack.setOnClickListener({
            finish()
        })
        binding.toolbar.tvTitle.text = "MainActivity"
    }
}